package Test1;
abstract class Shape{
     abstract public void draw ();
}

class Square extends Shape{
    @Override
    public void draw() {
        System.out.println("♦");
    }
}

class Triangle extends Shape{
    @Override
    public void draw() {
        System.out.println("▲");
    }
}

public class test1 {
    public static void getDraw (Shape shape){
        shape.draw();
    }

    public static void main(String[] args) {
        getDraw(new Square());
        getDraw(new Triangle());
    }
}
